<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="resources/bootstrap/css/bootstrap.min.css">
    <script type="text/javascript" src="resources/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="resources/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="resources/file/css/box.css">
    <link rel="stylesheet" type="text/css" href="resources/file/css/checkbox.css">
    <link rel="stylesheet" type="text/css" href="resources/file/css/iconfont.css">
    <link rel="stylesheet" type="text/css" href="resources/file/css/filebox.css">
    <link rel="stylesheet" type="text/css" href="resources/file/css/filemodal.css">

    <style type="text/css">
        a {
            color: black;
        }

        a:hover {
            text-decoration: none;
        }

        .bgc-w {
            background-color: #fff;
        }

        .box .nav-stacked > li {
            border-bottom: 1px solid #f4f4f4;
            margin: 0;
        }

        .nav-stacked > li > a {
            border-radius: 0;
            border-top: 0;
            border-left: 3px solid transparent;
            color: #444;
        }

        li.activee > a {
            border-left-color: #3c8dbc !important;
        }

        .des {
            border: none;
            color: #9e9e9e;
        }

        .menu {
            position: fixed;
            left: 0;
            top: 0;
            min-width: 114px;
            background-color: #fff;
            display: none;
            z-index: 30;
            box-shadow: 0 0 10px #999999;
            border-radius: 5px;
        }

        .menu .nav li a {
            padding: 5px 15px;
        }

        .menu a.disabled {
            pointer-events: none;
            filter: alpha(opacity=50); /*IE滤镜，透明度50%*/
            -moz-opacity: 0.5; /*Firefox私有，透明度50%*/
            opacity: 0.5; /*其他，透明度50%*/
        }

        .pathtextarea .creatpathinput {
            height: 23px;
            width: 78px;
            font-size: 12px;
            border: 1px solid rgba(58, 140, 255, .3);
            border-radius: 2px;
            padding-top: 0px;
            padding-left: 4px;
        }

        .pathtextarea .creatpathinput:focus {
            outline: none;
            border: 1px solid #0099CC;
            border-radius: 2px;
        }

        .pathtextarea .btn-default {
            padding: 0px 4px 0px 4px;
            border: 1px solid rgba(58, 140, 255, .3);
            color: #3b8cff;
        }

        .pathtextarea .btn-default:hover {
            background-color: #fff !important;
        }
    </style>
    <style></style>
    <style type="text/css" abt="234"></style>
    <script>
    /*doAdblock();

    function doAdblock() {
        (function () {
            function A() {
            }

            A.prototype = {
                rules: {
                    '17173_in': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFile(Customer)?\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_in_20150522.swf"
                    },
                    '17173_out': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/PreloaderFileFirstpage\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_out_20150522.swf"
                    },
                    '17173_live': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream(_firstpage)?\.swf/,
                        'replace': "http://swf.adtchrome.com/17173_stream_20150522.swf"
                    },
                    '17173_live_out': {
                        'find': /http:\/\/f\.v\.17173cdn\.com\/(\d+\/)?flash\/Player_stream_(custom)?Out\.swf/,
                        'replace': "http://swf.adtchrome.com/17173.out.Live.swf"
                    }
                },
                _done: null,
                get done() {
                    if (!this._done) {
                        this._done = new Array();
                    }
                    return this._done;
                },
                addAnimations: function () {
                    var style = document.createElement('style');
                    style.type = 'text/css';
                    style.innerHTML = 'object,embed{\
                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;\
                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;\
                -o-animation-duration:.001s;-o-animation-name:playerInserted;\
                animation-duration:.001s;animation-name:playerInserted;}\
                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}\
                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}';
                    document.getElementsByTagName('head')[0].appendChild(style);
                },
                animationsHandler: function (e) {
                    if (e.animationName === 'playerInserted') {
                        this.replace(e.target);
                    }
                },
                replace: function (elem) {
                    if (this.done.indexOf(elem) != -1) return;
                    this.done.push(elem);
                    var player = elem.data || elem.src;
                    if (!player) return;
                    var i, find, replace = false;
                    for (i in this.rules) {
                        find = this.rules[i]['find'];
                        if (find.test(player)) {
                            replace = this.rules[i]['replace'];
                            if ('function' === typeof this.rules[i]['preHandle']) {
                                this.rules[i]['preHandle'].bind(this, elem, find, replace, player)();
                            } else {
                                this.reallyReplace.bind(this, elem, find, replace)();
                            }
                            break;
                        }
                    }
                },
                reallyReplace: function (elem, find, replace) {
                    elem.data && (elem.data = elem.data.replace(find, replace)) || elem.src && ((elem.src = elem.src.replace(find, replace)) && (elem.style.display = 'block'));
                    var b = elem.querySelector("param[name='movie']");
                    this.reloadPlugin(elem);
                },
                reloadPlugin: function (elem) {
                    var nextSibling = elem.nextSibling;
                    var parentNode = elem.parentNode;
                    parentNode.removeChild(elem);
                    var newElem = elem.cloneNode(true);
                    this.done.push(newElem);
                    if (nextSibling) {
                        parentNode.insertBefore(newElem, nextSibling);
                    } else {
                        parentNode.appendChild(newElem);
                    }
                },
                init: function () {
                    var handler = this.animationsHandler.bind(this);
                    document.body.addEventListener('webkitAnimationStart', handler, false);
                    document.body.addEventListener('msAnimationStart', handler, false);
                    document.body.addEventListener('oAnimationStart', handler, false);
                    document.body.addEventListener('animationstart', handler, false);
                    this.addAnimations();
                }
            };
            new A().init();
        })();
    }

    //remove baidu search ad
    if (document.URL.indexOf('www.baidu.com') >= 0) {
        if (document && document.getElementsByTagName && document.getElementById && document.body) {
            var aa = function () {
                var all = document.body.querySelectorAll("#content_left div,#content_left table");
                for (var i = 0; i < all.length; i++) {
                    if (/display:\s?(table|block)\s!important/.test(all[i].getAttribute("style"))) {
                        all[i].style.display = "none";
                        all[i].style.visibility = 'hidden';
                    }
                }
                all = document.body.querySelectorAll('.result.c-container[id="1"]');
                //if(all.length == 1) return;
                for (var i = 0; i < all.length; i++) {
                    if (all[i].innerHTML && all[i].innerHTML.indexOf('广告') > -1) {
                        all[i].style.display = "none";
                        all[i].style.visibility = 'hidden';
                    }
                }
            }
            aa();
            document.getElementById('wrapper_wrapper').addEventListener('DOMSubtreeModified', aa)
        }
        ;
    }
    //remove sohu video ad
    if (document.URL.indexOf("tv.sohu.com") >= 0) {
        if (document.cookie.indexOf("fee_status=true") == -1) {
            document.cookie = 'fee_status=true'
        }
        ;
    }
    //remove 56.com video ad
    if (document.URL.indexOf("56.com") >= 0) {
        if (document.cookie.indexOf("fee_status=true") == -1) {
            document.cookie = 'fee_status=true'
        }
        ;
    }
    //fore iqiyi enable html5 player function
    if (document.URL.indexOf("iqiyi.com") >= 0) {
        if (document.cookie.indexOf("player_forcedType=h5_VOD") == -1) {
            document.cookie = 'player_forcedType=h5_VOD'
            if (localStorage.reloadTime && Date.now() - parseInt(localStorage.reloadTime) < 60000) {
                console.log('no reload')
            } else {
                location.reload()
                localStorage.reloadTime = Date.now();
            }
        }
    }*/
    </script>
    <style type="text/css">object, embed {
        -webkit-animation-duration: .001s;
        -webkit-animation-name: playerInserted;
        -ms-animation-duration: .001s;
        -ms-animation-name: playerInserted;
        -o-animation-duration: .001s;
        -o-animation-name: playerInserted;
        animation-duration: .001s;
        animation-name: playerInserted;
    }

    @-webkit-keyframes playerInserted {
        from {
            opacity: 0.99;
        }
        to {
            opacity: 1;
        }
    }

    @-ms-keyframes playerInserted {
        from {
            opacity: 0.99;
        }
        to {
            opacity: 1;
        }
    }

    @-o-keyframes playerInserted {
        from {
            opacity: 0.99;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes playerInserted {
        from {
            opacity: 0.99;
        }
        to {
            opacity: 1;
        }
    }</style>
</head>

<body style="background-color: #ecf0f5;">
<div class="row" style="padding-top: 10px;">
    <div class="col-md-2">
        <h1 style="font-size: 24px; margin: 0;" class="">文件管理</h1>
    </div>
    <div class="col-md-10 text-right">
        <a href="##"><span class="glyphicon glyphicon-home"></span> 首页</a> &gt;
        <a disabled="disabled">文件管理</a>
    </div>
</div>
<div class="row" style="padding-top: 15px;">
    <div class="col-md-3">
        <form class="fileuploadform" action="fileupload" method="post" enctype="multipart/form-data">
            <div class="btn btn-primary uploadfile"
                 style="position: relative; overflow: hidden;width: 100%; margin-bottom: 20px;">
                <i class="glyphicon glyphicon-open"></i> 上传
                <input type="file" name="file"
                       style="opacity: 0; position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%;">
                <input type="hidden" name="pathid" value="94">
            </div>
        </form>
        <div class="bgc-w box box-solid">
            <div class="box-header">
                <h3 class="box-title">云盘</h3>
                <span class="btn btn-default pull-right btn-xs des mm"> <i class="glyphicon glyphicon-minus"></i>
					</span>
            </div>
            <ul class="nav nav-pills nav-stacked mm">
                <li class="activee filetypedocument"><a href="filemanage"> <span
                        class="iconfont icon-suoyougongneng"></span> 全部文件</a></li>
                <li><a href="##" class="filetypedocument"><span class="iconfont icon-icon4"></span>
                    文档</a></li>
                <li><a href="##" class="filetypeimage"><span class="iconfont icon-tupian"></span>
                    图片</a></li>
                <li><a href="##" class="filetypemusic"><span class="iconfont icon-yinyue"></span>
                    音乐</a></li>
                <li><a href="##" class="filetypevedio"><span class="iconfont icon-shipin"></span> 视频</a></li>
                <li><a href="##" class="filetypeyasuo"><span class="iconfont icon-yasuobao"></span> 压缩包</a></li>
                <li><a href="##" class="filetypeshare"><span class="iconfont icon-fenxiang"></span>
                    共享文件</a></li>
                <li>
                    <a href="##" class="filetypetrash"><span class="iconfont icon-lajitong"></span> 回收战</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="col-md-9">
        <!--id="container"-->
        <div class="loadfiletype">
            <div class="menu">
                <ul class="nav nav-pills nav-stacked" style="padding:5px 0 5px 0;">
                    <li><a class="open">打开</a></li>
                    <li><a class="downloadfile">下载</a></li>
                    <li><a class="doshare" href="doshare?pathid=94&amp;">分享</a></li>
                    <li><a class="movefile">移动到</a></li>
                    <li><a class="copyfile">复制到</a></li>
                    <li><a class="menurename">重命名</a></li>
                    <li><a onclick="{return confirm('文件将放入回收站，确定删除吗？');};" class="delete">删除</a></li>
                </ul>
            </div>
            <div class="bgc-w box box-primary" style="height: 695px;">
                <!--盒子头-->
                <div class="box-header">
                    <h3 class="box-title" style="font-size: 12px;">全部文件</h3>
                    <div class="box-tools">
                        <div class="input-group" style="width: 150px;">
                            <input type="text" class="form-control input-sm findfileandpath" placeholder="查找...">
                            <div class="input-group-btn">
                                <a class="btn btn-sm btn-default btn-change findfileandpathgo"><span
                                        class="glyphicon glyphicon-search"></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--盒子身体-->
                <div class="box-body no-padding">

                    <div style="padding: 5px;">
                        <a class="btn btn-sm btn-default allcheck" href="javascript:void(0);" title="全选/反选"><span
                                class="iconfont icon-xuanze1"></span></a>
                        <div class="btn-group">
                            <a onclick="{return confirm('文件将放入回收站，确定删除吗？');};" class="btn btn-sm btn-default topdelete"
                               href="deletefile?pathid=94&amp;checkpathids=&amp;checkfileids=" title="删除">
                                <span class="iconfont icon-lajitong"></span>
                            </a>
                            <a class="btn btn-sm btn-default topcreatepath" href="javascript:void(0);" title="新建文件夹">
                                <span class="iconfont icon-xinzengwenjian"></span>
                            </a>
                        </div>
                        <a class="btn btn-sm btn-default" href="filemanage" title="刷新"><span
                                class="iconfont icon-shuaxin"></span></a>
                    </div>


                    <div class="file-box" style="overflow-y: auto;">
                        <div class="boxcontain" style="height: auto;">

                            <!--新建文件夹操作显示部分  -->
                            <div class="file-one creatpath pathtextarea diplaynone" style="width: 144px;">
                                <div class="file-img">
                                    <img src="resources/file/img/Folder.png">
                                </div>
                                <div class="file-name" style="text-align: left;">
                                    <form action="createpath">
                                        <input class="creatpathinput" type="text" name="pathname" value="新建文件夹">
                                        <input type="hidden" name="pathid" value="94">
                                        <button class="btn btn-default">
                                            <em class="glyphicon glyphicon-ok" style="font-size: 12px;"></em>
                                        </button>
                                        <span class="btn btn-default">
									<em class="glyphicon glyphicon-remove cansalcreate" style="font-size: 12px;"></em>
								</span>
                                    </form>
                                </div>
                                <span class="file-check">
							<span class="iconfont icon-xuanze" style="height:1.5em;width:1.5em"></span>
						</span>
                            </div>


                            <div class="file-one">
                                <div class="file-img">
                                    <img src="resources/file/img/PDF.png">
                                </div>
                                <div class="file-name">
                                    <div class="filename">
                                        <a>Drawing1-Model.pdf</a>
                                        <input type="hidden" class="fileuserid" id="5">
                                        <input type="hidden" class="nowuserid" id="">
                                    </div>
                                    <div class="pathtextarea rename diplaynone"
                                         style="position: absolute;top: 97px;left: -5px;z-index:100;">
                                        <form action="rename">
                                            <input class="creatpathinput" type="text" name="name"
                                                   value="Drawing1-Model.pdf">
                                            <input type="hidden" name="renamefp" value="130">
                                            <input type="hidden" name="pathid" value="94">
                                            <input type="hidden" name="isfile" value="true">
                                            <button class="btn btn-default">
                                                <em class="glyphicon glyphicon-ok" style="font-size: 12px;"></em>
                                            </button>
                                            <span class="btn btn-default">
										<em class="glyphicon glyphicon-remove cansalcreate"
                                            style="font-size: 12px;"></em>
									</span>
                                        </form>
                                    </div>
                                </div>
                                <input type="hidden" class="filemessage" value="130">
                                <span class="file-check">
							<span class="iconfont icon-xuanze" style="height:1.5em;width:1.5em"></span>
						</span>
                            </div>
                            <div class="file-one">
                                <div class="file-img">
                                    <img src="resources/file/img/PDF.png">
                                </div>
                                <div class="file-name">
                                    <div class="filename">
                                        <a>Codelife.pdf</a>
                                        <input type="hidden" class="fileuserid" id="5">
                                        <input type="hidden" class="nowuserid" id="">
                                    </div>
                                    <div class="pathtextarea rename diplaynone"
                                         style="position: absolute;top: 97px;left: -5px;z-index:100;">
                                        <form action="rename">
                                            <input class="creatpathinput" type="text" name="name" value="Codelife.pdf">
                                            <input type="hidden" name="renamefp" value="131">
                                            <input type="hidden" name="pathid" value="94">
                                            <input type="hidden" name="isfile" value="true">
                                            <button class="btn btn-default">
                                                <em class="glyphicon glyphicon-ok" style="font-size: 12px;"></em>
                                            </button>
                                            <span class="btn btn-default">
										<em class="glyphicon glyphicon-remove cansalcreate"
                                            style="font-size: 12px;"></em>
									</span>
                                        </form>
                                    </div>
                                </div>
                                <input type="hidden" class="filemessage" value="131">
                                <span class="file-check">
							<span class="iconfont icon-xuanze" style="height:1.5em;width:1.5em"></span>
						</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal">
    <div class="file-one diplaynone">
        <div class="file-img">
            <img src="resources/file/img/Folder.png">
        </div>
        <div class="file-name">
            <a></a>
        </div>
        <input type="hidden" class="pathmessage" value="">
        <span class="file-check">
				<span class="iconfont icon-xuanze" style="height:1.5em;width:1.5em"></span>
			</span>
    </div>
</div>

<!-- 移动复制模态框 -->
<div class="modal fade in" id="thismodal" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body box no-padding" style="display: none;">
                <div class="box-header">
                    <h3 class="box-title mc-title" style="font-size:15px;"></h3>
                </div>
                <div class="box-body no-padding">
                    <div class="box-header" style="padding:3px 0 3px 0;">
							<span class="btn btn-default btn-xs des mm">
								<i class="glyphicon-minus"></i>
							</span>
                        <!-- <img class="mcfloorimg" src="images/fileimg/Folder.png" /> -->
                        <div class="mcflooropen"></div>
                        <h3 class="box-title" style="font-size:12px;">soli</h3>
                        <input class="mctopathid" type="hidden" value="94">
                    </div>
                    <ul class="nav nav-pills nav-stacked mm" style="padding-left:15px;">
                        <!-- <li style="border:0px;">
                            <div class="box-header no-padding">
                                <span class="btn btn-default btn-xs des mm">
                                    <i class="glyphicon-plus"></i>
                                </span>
                                <div class="mcflooropen"></div>
                                <h3 class="box-title" style="font-size:12px;">文件夹1</h3>
                            </div>
                            <ul class="nav nav-pills nav-stacked mm" style="padding-left:15px;display:none;">
                                <li>xxx</li>
                            </ul>
                        </li>
                        <li style="border:0px;">
                            <div class="box-header no-padding">
                                <span class="btn btn-default btn-xs des mm">
                                    <i class="glyphicon-plus"></i>
                                </span>
                                <div class="mcflooropen"></div>
                                <h3 class="box-title" style="font-size:12px;">文件夹1</h3>
                            </div>
                            <ul class="nav nav-pills nav-stacked mm" style="padding-left:15px;display:none;">

                            </ul>
                        </li>
                        <li style="border:0px;">
                            <div class="box-header no-padding">
                                <span class="btn btn-default btn-xs des mm">
                                    <i class="glyphicon-plus"></i>
                                </span>
                                <div class="mcflooropen"></div>
                                <h3 class="box-title" style="font-size:12px;">文件夹1</h3>
                            </div>
                            <ul class="nav nav-pills nav-stacked mm" style="padding-left:15px;display:none;">
                                <li>yeah</li>
                            </ul>
                        </li> -->
                    </ul>
                </div>
                <div class="box-footer" style="text-align:right;">
                    <input class="userrootpath" type="hidden" name="userrootpath" value="94">
                    <form action="mcto" method="get">
                        <input class="mctoid" type="hidden" name="mctoid" value="94">
                        <input class="mcfileids" type="hidden" name="mcfileids" value="">
                        <input class="mcpathids" type="hidden" name="mcpathids" value="">
                        <input type="hidden" name="pathid" value="94">
                        <input class="morc" type="hidden" name="morc" value="">
                        <button type="submit" class="btn btn-primary">确定</button>
                        <button type="button" class="btn btn-default mcmodalcancle" data-dismiss="modal">取消</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="resources/file/js/iconfont.js"></script>
<script src="resources/file/js/filejs.js"></script>
<script src="resources/file/js/fileajax.js"></script>
<script type="text/javascript">
    $(function () {

        /*
         * 收縮
         */
        $("body").on("click", ".des", function () {
            console.log("aaaa");
            var $this = $(this).children();

            var $ul = $(this).parents(".box-header").next();

            if ($(this).hasClass("mm")) {
                if ($this.hasClass("glyphicon-minus")) {
                    $this.removeClass("glyphicon-minus").addClass("glyphicon-plus");
                } else {
                    $this.removeClass("glyphicon-plus").addClass("glyphicon-minus");
                }
                $ul.slideToggle(1000);
            } else {
                if ($this.hasClass("glyphicon-minus")) {
                    $this.removeClass("glyphicon-minus").addClass("glyphicon-plus");
                } else {

                    $this.removeClass("glyphicon-plus").addClass("glyphicon-minus");
                }
                $ul.slideToggle(1000);
            }
        });

        $(".nav.mm").on("click", "li", function () {
            $(this).parent().children(".activee").removeClass("activee");
            $(this).addClass("activee");
        });

        $(".uploadfile input").bind("change", function () {
            $(".fileuploadform").submit();
        });

    });

</script>
</body>
</html>